package com.thx.addressbook.model;


import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;



/**
 * AddressbookGroup entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "ADDRESSBOOK_GROUP")
public class AddressbookGroup implements java.io.Serializable {

  private static final long serialVersionUID = 1L;

  public String toString() {
    return ToStringBuilder.reflectionToString(this, ToStringStyle.DEFAULT_STYLE);
  }

  // Fields
  @Id
  /*
   * @GeneratedValue(strategy = GenerationType.SEQUENCE,generator="payablemoney_seq")
   * 
   * @SequenceGenerator(name="payablemoney_seq",
   * sequenceName="SEQ_ADDRESSBOOK_GROUP",allocationSize=1)
   */

  @GeneratedValue(strategy = GenerationType.TABLE, generator = "tab-store")
  @TableGenerator(name = "tab-store", table = "tb_generator", pkColumnName = "gen_name",
      valueColumnName = "gen_value", pkColumnValue = "SEQ_ADDRESSBOOK_GROUP", allocationSize = 1)
  private Long agId;
  private Long enterpriseId;
  private Long acId;
  private Long personnelId;
  private String agName;
  private Long agOrder;
  private String updateUser;
  private Date createTime;
  private Date updateTime;
  private String createUser;

  // Constructors

  /** default constructor */
  public AddressbookGroup() {}

  /** full constructor */
  public AddressbookGroup(Long enterpriseId, Long acId, Long personnelId, String agName,
      Long agOrder) {
    this.enterpriseId = enterpriseId;
    this.acId = acId;
    this.personnelId = personnelId;
    this.agName = agName;
    this.agOrder = agOrder;
  }

  // Property accessors

  public Long getAgId() {
    return this.agId;
  }

  public void setAgId(Long agId) {
    this.agId = agId;
  }

  public Long getEnterpriseId() {
    return this.enterpriseId;
  }

  public void setEnterpriseId(Long enterpriseId) {
    this.enterpriseId = enterpriseId;
  }

  public Long getAcId() {
    return this.acId;
  }

  public void setAcId(Long acId) {
    this.acId = acId;
  }

  public Long getPersonnelId() {
    return this.personnelId;
  }

  public void setPersonnelId(Long personnelId) {
    this.personnelId = personnelId;
  }

  public String getAgName() {
    return this.agName;
  }

  public void setAgName(String agName) {
    this.agName = agName;
  }

  public Long getAgOrder() {
    return this.agOrder;
  }

  public void setAgOrder(Long agOrder) {
    this.agOrder = agOrder;
  }

  public String getUpdateUser() {
    return updateUser;
  }

  public void setUpdateUser(String updateUser) {
    this.updateUser = updateUser;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public Date getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(Date updateTime) {
    this.updateTime = updateTime;
  }

  public String getCreateUser() {
    return createUser;
  }

  public void setCreateUser(String createUser) {
    this.createUser = createUser;
  }

}
